package org.jackysoft.entity;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import org.jackysoft.annotations.Form;
import org.jackysoft.annotations.FormEncType;
import org.springframework.data.annotation.PersistenceConstructor;

@Entity
@org.hibernate.annotations.Entity(dynamicUpdate=true,dynamicInsert=true) 
@Form(id="SparePartForm",label="SparePart 编辑",enctype=FormEncType.NORMAL)
public class SparePart extends AbstractEquipment {
   
    /**
	 * 
	 */
	private static final long serialVersionUID = 5137309388197648901L;

	private Equipment host;
	private String agent;
	@PersistenceConstructor
	public SparePart(){
		
	}
	
	
	
	@ManyToOne
	public Equipment getHost() {
		return host;
	}
	public void setHost(Equipment host) {
		this.host = host;
	}



	public String getAgent() {
		return agent;
	}



	public void setAgent(String agent) {
		this.agent = agent;
	}  


}